import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './vant.js'
import '@/styles/index.less'
import '@/utils/flexible'
import { isApp } from '@/utils/system'
import VueClipboard from 'vue-clipboard2'
import { getlist } from '@/api/public'
Vue.use(VueClipboard)
Vue.config.productionTip = false

const init = () => {
  new Vue({
    router,
    store,
    render: h => h(App)
  }).$mount('#app')
  isApp && (window.QFH5ready = undefined)
}

process.env.NODE_ENV === 'production' ? isApp ? window.QFH5ready = init : getlist() : init()
